﻿using System.Web.Mvc;
using Downloader.Domain;
using Downloader.Domain.Contracts.Tasks;
using Downloader.Domain.QueryParams;
using Downloader.Web.Controllers.Queries;

namespace Downloader.Web.Controllers
{
    public class ArticleDetailController : Controller
    {
        public IArticleQuery ArticleQuery { get; set; }
       public IArticleContentTasks ArticleContentTasks { get; set; }
       public ActionResult ArticleDetail(ArticleQueryParams query)
       {
           var viewmodel = ArticleQuery.GetArticleByUrlName(query);
           return PartialView(viewmodel);
       }
    }
}
